//
//  FIRequest.h
//  Magpie
//
//  Created by 100TV protocal on 12-11-14.
//
//

#import <Foundation/Foundation.h>

@protocol FIRequest <NSObject>

-(id) target;
-(SEL) action;
-(NSDictionary*) params;

-(void) setTarget:(id) atarget;

/*
 aaction:
 回调函数
 方法sel 格式为: -(void) method:(id<YKRequest>) request responseObj:(id) responseObj;
 具体 responseObj 请参考具体的datasource
 */
-(void) setAction:(SEL) aaction;
-(void) setParams:(NSDictionary*) aparams;

-(id) parseResponse:(id) response;

-(void) setParam:(id) param forKey:(id) key;
-(id) paramForKey:(id) key;

@end
